runtime.gcControllerState.totalAlloc (field)
8 uses
runtime (current package)
arena.go#L970: gcController.totalAlloc.Add(int64(userArenaChunkBytes))
mcache.go#L175: gcController.totalAlloc.Add(bytesAllocated)
mcache.go#L246: gcController.totalAlloc.Add(int64(npages * pageSize))
mcache.go#L279: gcController.totalAlloc.Add(slotsUsed * int64(s.elemsize))
mgcpacer.go#L359: totalAlloc atomic.Uint64 // total bytes allocated
mgcpacer.go#L954: heapAlloc = c.totalAlloc.Load() - c.totalFree.Load() // Heap object bytes in use.
mstats.go#L475: if gcController.totalAlloc.Load() != totalAlloc {
mstats.go#L476: print("runtime: totalAlloc=", gcController.totalAlloc.Load(), "\n")
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |